package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生做题记录表对象 zzxx_answer_record
 * 
 * @author ruoyi
 * @date 2022-06-20
 */
public class ZzxxAnswerRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号
答题记录编号 */
    private Long id;

    /** 答题是否正确 */
    @Excel(name = "答题是否正确")
    private String judge;

    /** 答题者 */
    @Excel(name = "答题者")
    private Long studentId;

    /** 答题时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "答题时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 用户提交答案 */
    @Excel(name = "用户提交答案")
    private String answer;

    /** 题目序号 */
    @Excel(name = "题目序号")
    private Long questionId;

    /** 题目类型 */
    @Excel(name = "题目类型")
    private String questionType;

    /** 所属知识点 */
    @Excel(name = "所属知识点")
    private String knowledge;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setJudge(String judge) 
    {
        this.judge = judge;
    }

    public String getJudge() 
    {
        return judge;
    }
    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setAnswer(String answer) 
    {
        this.answer = answer;
    }

    public String getAnswer() 
    {
        return answer;
    }
    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }
    public void setQuestionType(String questionType) 
    {
        this.questionType = questionType;
    }

    public String getQuestionType() 
    {
        return questionType;
    }
    public void setKnowledge(String knowledge) 
    {
        this.knowledge = knowledge;
    }

    public String getKnowledge() 
    {
        return knowledge;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("judge", getJudge())
            .append("studentId", getStudentId())
            .append("time", getTime())
            .append("answer", getAnswer())
            .append("questionId", getQuestionId())
            .append("questionType", getQuestionType())
            .append("knowledge", getKnowledge())
            .toString();
    }
}
